package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 区块链网络信息操作日志对象 pinko_blocknetwork_log
 * 
 * @author ruoyi
 * @date 2024-06-07
 */
public class PinkoBlocknetworkLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 父类ID */
    @Excel(name = "父类ID")
    private Long fatherId;

    /** 网络名称 */
    @Excel(name = "网络名称")
    private String networkName;

    /** 链ID */
    @Excel(name = "链ID")
    private String chainId;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String action;

    /** 操作内容 */
    @Excel(name = "操作内容")
    private String actiondescription;

    /** 创建者 */
    @Excel(name = "创建者")
    private Long creator;

    /** 创建者姓名 */
    @Excel(name = "创建者姓名")
    private String creatorName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setFatherId(Long fatherId)
    {
        this.fatherId = fatherId;
    }

    public Long getFatherId()
    {
        return fatherId;
    }
    public void setNetworkName(String networkName)
    {
        this.networkName = networkName;
    }

    public String getNetworkName()
    {
        return networkName;
    }
    public void setChainId(String chainId)
    {
        this.chainId = chainId;
    }

    public String getChainId()
    {
        return chainId;
    }
    public void setAction(String action)
    {
        this.action = action;
    }

    public String getAction()
    {
        return action;
    }
    public void setActiondescription(String actiondescription)
    {
        this.actiondescription = actiondescription;
    }

    public String getActiondescription()
    {
        return actiondescription;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setCreatorName(String creatorName)
    {
        this.creatorName = creatorName;
    }

    public String getCreatorName()
    {
        return creatorName;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("fatherId", getFatherId())
                .append("networkName", getNetworkName())
                .append("chainId", getChainId())
                .append("action", getAction())
                .append("actiondescription", getActiondescription())
                .append("creator", getCreator())
                .append("creatorName", getCreatorName())
                .append("createDate", getCreateDate())
                .toString();
    }
}
